package com.bjpowernode.crm.workbench.dao;

import com.bjpowernode.crm.workbench.eneity.Tran;
import com.bjpowernode.crm.workbench.eneity.TranTitle;

import java.util.List;
import java.util.Map;

public interface TranDao {
    //创建一条交易
    int insertTran(Tran tran);
    //获取总记录条数
    int getTitle();
    //获取否和条件的交易信息列表
    List<Tran> getTranList(Map<String, String> params);
    //添加一条交易
    int saveTran(Map<String, String> params);
    //交易信息详情查询
    Tran getTranById(String id);
    //交易阶段变更
    int changeStage(Map<String, String> params);
    //查询每个阶段交易的记录条数
    List<Map<String,String>> getTranStageAndCount();
}
